<?php


namespace app\common\lib;


class Str
{
    public static function getToken($string)
    {
        $str = md5(uniqid(md5(microtime(true)), true));
        return sha1($str . $string);
    }
}